package syan.kafkastream.Controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import syan.kafkastream.Config.SendService;

/**
 * @author CHENTAIWEN
 * @create 2022/8/24 15:07
 */
@RestController
public class Controller {

    @Autowired
    private SendService service;

    @GetMapping("add")
    public void addSend() {
        service.sendMsg("测试kafka");
    }
}
